package com.csd.action.manager;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.csd.helper.ActionResult;
import com.csd.helper.ProjectState;
import com.csd.service.IProjectService;
import com.csd.vo.ProjectVO;

/**
 * 管理员待完成的前期项目通过与否的审查列表
 * @author sanmu
 *	<br> 创建于2009-12-25
 */

public class ProjectApplyEvaluateListAction {

	private List<ProjectVO> evaluateList ;
	
	private IProjectService projectService;

	public List<ProjectVO> getEvaluateList() {
		return evaluateList;
	}

	public void setEvaluateList(List<ProjectVO> evaluateList) {
		this.evaluateList = evaluateList;
	}

	public IProjectService getProjectService() {
		return projectService;
	}

	public void setProjectService(IProjectService projectService) {
		this.projectService = projectService;
	}
	
	public String execute()throws Exception
	{
		String text = ActionResult.fail;
		HttpSession httpSession = ServletActionContext.getRequest().getSession();
		
		//获得管理员待完成的前期项目通过与否的审查列表   
		evaluateList = projectService.listProjectApplyEvaluate();
		httpSession.setAttribute(ProjectState.stage, ProjectState.beforeStage);
		text = ActionResult.success;
		return text;
	}
}
